package com.stm.bi.etl.format;

import com.stm.framework.core.util.FileResourceLoader;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

@Component
public class AdsFormatCooperativeEtlTask extends AbsFormatEtlTask{
    @Override
    public String getTaskName() {
        return "业态-合作业态";
    }

    @Override
    public List<Map> transform(Long orgId, String orgNo, List<Map> dataList) {
        return null;
    }

    @Override
    public void load(Long orgId, String orgNo, List<Map> dataList) {
        dorisLoadRepository.putLoad("ads_res_format_cooperative_sales",dataList);
    }

    @Override
    public String getFormatType() {
        return "shop_cooperation_format";
    }

    @Override
    public List<String> getFormatField() {
        return Arrays.asList("cooperative_code", "cooperative_name") ;
    }

    @Override
    public String getAttachedSql() {
        return FileResourceLoader.getResourceAsString("/sql/format/cooperative.sql");
    }
}
